<?php

namespace App\Api\Controllers;

use App\Models\Banner;
use Illuminate\Http\Request;

class BannersController extends Controller
{
    public function index(Banner $banner){
        return $this->success($banner->orderBy('sort','desc')->get());
    }

    public function show(Banner $banner){
        return $this->success($banner);
    }
}
